home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_11_1986_Transactor_Publishing.d64
/
pop menu demo
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
1KB
|
52 lines
95 if fl=-1 then 200
100 a=peek(49152)+peek(49153)*256+peek(49154)
110 if a=4108 then 200
120 fl=-1 :load"pick.mlp.c000",8,1
200 :
300 h1$=chr$(192)+chr$(192):h2$=h1$+h1$
310 v$=chr$(221)
320 ul$=chr$(176) : rem upper left corner (c= & a)
330 ur$=chr$(174) : rem upper right corner (c= & s)
340 ll$=chr$(173) : rem lower left corner (c= & z)
350 lr$=chr$(189) : rem lower right corner (c= & x)
1000 rem window using program
1010 print"[147]";
1030 printul$h2$chr$(178)h2$h2$h2$h1$chr$(178)h2$h2$h2$h2$h1$ur$;
1040 print v$"exit"v$" "v$"background "v$;
1050 printchr$(171)h2$chr$(219)h2$h2$h2$h1$chr$(177)h2$h2$h2$h2$h1$lr$;
1060 printv$"time"v$
1070 printv$"on "v$
1080 print chr$(171)h2$chr$(179)
1090 printv$"opts"v$
1100 printll$h2$lr$
1200 gosub 60000
1210 geta$:
1212 print"";b:if z=0 then b=b+1
1214 if a$<>chr$(13) then 1210
1220 if peek(2) = ex then 20000
1230 if peek(2) = bk then 21000
1250 if peek(2) = tm then 23000
1900 goto 1210
20000 a$="no yes"
20010 sys 49158,0,0,5,4,1,a$
20020 if peek(599) =2 then sys 49164:stop
20030 goto 1210
21000 a$="black white red cyan purplegreen blue yellow"
21010 sys 49158,21,0,8,10,0,a$
21020 poke 53281,peek(599)-1
21030 goto 1210
23000 if z=0 then 23100
23010 z=0
23020 print"time[157][157][157][157]on "
23030 goto1210
23100 rem
23110 z=1
23120 print"time[157][157][157][157]off "
23130 goto1210
60000 sys 49152
60010 sys 49155,1,1,4,1:ex=peek(782)
60020 sys 49155,1,3,4,2:tm=peek(782)
60030 sys 49155,1,6,4,1:op=peek(782)
60040 sys 49155,21,1,10,1:bk=peek(782)
60050 return